<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
 <link rel="stylesheet" type="text/css" href=" <?php echo base_url();?>css/style_list_tecn.css"></link>
   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
 

</head>

<body onload="window.parent.scrollTo(0,0)">

<h2>Equipos de trabajo</h2>

<?php if($modi!=null && $modi==1){?>
<?php echo form_open('visitas_modi/modificar/'.$idVisita.'/2'); ?>
<?php }else {?>
<?php echo form_open('visitas_modi/index/'.$idVisita.'/2');} ?>

<?php foreach ($equipos as $eq){
	$checked = false;
		
	foreach ($equi as $e){ 
		if ($eq['idMaquinaria'] == $e->idMaquinaria){ 
			$checked = true;	
			break;	
		}		
	}
	
	if($checked==true){
		?> 
			<p><input type="checkbox" name="maquinas[]" value="<?php echo $eq['idMaquinaria'];?>" size="50" checked/><?php echo $eq['nombreMaq'];?></p>
		<?php 
		
	}else{
		?>
			<p><input type="checkbox" name="maquinas[]" value="<?php echo $eq['idMaquinaria'];?>" size="50" /><?php echo $eq['nombreMaq'];?></p>
		<?php 
		
	}
	
} 



?>




</br>
<section><button type="submit" class="btnLogin">Guardar </button></section></br></br></br>

</form>

</body>


</html>